package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.LikeQueryObject;
import cn.wolfcode.trip.base.query.StrategyCatalogQueryObject;
import cn.wolfcode.trip.base.query.UserProfilesQueryObject;
import cn.wolfcode.trip.base.query.UserQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {
    void save(StrategyComment strategyComment,String[] tags);

    PageInfo<StrategyComment> queryCommentsByStrategyId(StrategyCatalogQueryObject qo);

    StrategyComment getCommentById(Long commentId);

    /**
     * 保存子评论的内容
     * @param strategyComment 评论对象
     */
    void saveReplyComment(StrategyComment strategyComment);

    StrategyComment getReplyCommentById(Long commentId);
    /**
     * 查询用户个攻略评论
     * @param qo
     * @return
     */
    PageInfo queryforStrategyComments(UserProfilesQueryObject qo);

    /**
     * 获取评论当前用户的评论的集合
     * @param qo
     * @return
     */
    PageInfo<StrategyComment> selectListForCommentUser(LikeQueryObject qo);
}
